Based on C/ C++ language the author devises programs of positive integer greatest common divisor algorithms. By analyzing algorithms, the author presents some suggestions of programming language teaching. 设计出了基于C/C++语言最大公约数算法程序,通过分析算法,提出了程序设计语言教学的几点建议。